import request from '@/utils/request'

// 查询产品
export function getProduct (data) {
  return request({
    url: '/product/getList',
    method: 'get',
    params: data,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded',
      'Authorization': window.localStorage.getItem('token'),
    }
  })
}

// 新增产品
export function addProduct (data) {
  return request({
    url: '/product/addPro',
    method: 'get',
    params: data,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded',
      'Authorization': window.localStorage.getItem('token'),
    }
  })
}



// 删除产品
export function deleteProduct (data) {
  return request({
    url: '/product/delPro',
    method: 'get',
    params: data,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded',
      'Authorization': window.localStorage.getItem('token'),
    }
  })
}